package com.dietmanager.view;

import java.util.Date;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

import com.dietmanager.model.Food;

/**
 * 
 * @author Danijel, Petar
 * @description Implements the View class. It is the main view, holds also GUI and operating methods for using the program.
 *
 */

public class MainView extends Application {



	@Override
	public void start(Stage primaryStage) throws Exception {

		primaryStage.setTitle("Diet Manager");
		StackPane root = new StackPane();
		//FlowPane root = (FlowPane)FXMLLoader.load(getClass().getResource("MainView.fxml"));
		Scene scene = new Scene(root,400,400);
		//scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());

		//root.getChildren().add(btn);
		primaryStage.setScene(scene);
		primaryStage.show();
	}

	public void saveDailyLog() {

	}

	public void displayConsumedFood() {

	}

	public void displayTotalCalories() {

	}

	public void displayNutrition() {

	}

	public void addFoodToDailyLog(Date date, Food food) {

	}

	public void addFoodToDatabase(Food food) {

	}

	public void addWeight(int number) {

	}

	public void getSpecificLog(Date date) {

	}

	public void changeCalorieLimit(int number) {

	}
	
	public static void main(String[] args){
		launch(args);
	}


}
